{% include 'front/header.html' %}
<link rel="stylesheet" href="/resource/front/css/mobile/y-login.css" />
<script type="text/javascript" src="/resource/front/css/mobile/size.js"></script>
<script>
			function setFont() {
				var HTML = document.getElementsByTagName('html')[0];
				/*var dpr=1;//像素比
				var Size=document.documentElement.clientWidth*dpr/10;*/
				//把viewport视口分成10份的rem,html的font-size为1rem
				var Size = document.documentElement.clientWidth / 10;
				if(Size >= 60) {
					Size = 60
				}
				HTML.style.fontSize = Size + 'px';
			};
			setFont(); //初始适配
			window.onresize = function() { //窗口大小改变适配
				setFont();
			};
		</script>
<body>
	<div class="wallet-wrap" style="max-width: 600px; height: 100%; margin:0 auto ;position: relative;background: #fff !important;">
		<div class="wallet-header">
			<p class="wa-o">
				<span>总收入：</span>
				<span id="all_money">
                	
                </span>
                LCB
			</p>
			<p class="wa-b">
				<span>余额：</span>
				<span id="earn" eran>
                	
                </span> LCB
			</p>
		</div>
		<div>
			<p class="y-font">下载合作应用钱包可立即提现</p>
			<div class="ul-wrap">
				<ul>
					<li>
						<a href="http://zhichi_test.52qingqiyun.com/Public/App/download.html"><img src="/resource/front/images/forward/lclogo.png" alt=""></a>
						<div>龙采校园</div>
					</li>
					<!--<li>
						<img src="/resource/front/images/forward/logo1.png" alt="">
						<div>HYH区块链</div>
					</li>
					<li>
						<img src="/resource/front/images/forward/logo1.png" alt="">
						<div>HYH区块链</div>
					</li>
					<li>
						<img src="/resource/front/images/forward/logo1.png" alt="">
						<div>HYH区块链</div>
					</li>
					<li>
						<img src="/resource/front/images/forward/logo1.png" alt="">
						<div>HYH区块链</div>
					</li>
					<li>
						<img src="/resource/front/images/forward/logo1.png" alt="">
						<div>HYH区块链</div>
					</li>-->

				</ul>

			</div>

		</div>

	</div>

</body>
<script type="text/javascript" src="/resource/front/js/jquery.min.js"></script>
<script type="text/javascript" src="/resource/front/css/mobile/mui.js"></script>
<script type="text/javascript" src="/resource/front/css/mobile/jQuery.md5.js"></script>
<script type="text/javascript" src="/resource/front/css/mobile/ykp.js"></script>
<script type="text/javascript">
	mui.ready(function() {
		if(!ykp.getLocalStorage('userInfo')){
			window.location.href = 'login';
		}
		this.init()
		
	})

	function init() {
		var uid = JSON.parse(ykp.getLocalStorage('userInfo')).uid;
		console.log(JSON.parse(ykp.getLocalStorage('userInfo')))
		ykp.doAjax({
			url: "/api/user/balance",
			method: "post",
			data: {
				uid: uid
			},
			success: function(res) {
				console.log(res);
				$('#earn').text(res.data.earn || 0);
				$('#all_money').text(res.data.all_money+".00" || 0 )
			}
		})

	}
</script>


</html>